home *** CD-ROM | disk | FTP | other *** search
/ 8bitfiles.net/archives / archives.tar / archives / compuserve-file-archive / 05 Programming / CNOTE2.TXT < prev    next >
Text File  |  2019-04-13  |  3KB  |  99 lines

  1. **********
  2. C notes II
  3. **********  
  4.  
  5. These are some hints to using C-Power 128.
  6.  
  7. Written as subsequent file to another 
  8. cnotes.txt file in this D/L section.
  9.  
  10. 1.  LIB.C on the program diskette is for
  11. the C-64 version and will never work as
  12. it is written.  (Ashamed to admit it took
  13. me MONTHS to figure this out!).  The SYS
  14. call in the GETCH function must have a
  15. BANK location included.  It should read:
  16.  
  17. getch()
  18. {
  19.     char a, x, y;
  20.  
  21.     do
  22.         sys (15, 0xffe4, &a, &x, &y);
  23.     while (a == 0);
  24.     return a;
  25. }
  26.  
  27. This is an obscure little error, but would
  28. crash the LIB program every time!  There
  29. has been a BASIC C library manager written
  30. and published by The TRANSACTOR, but it
  31. is so much nicer to have it run under the
  32. shell program.
  33.  
  34. 2.  There are multiple edit buffers for
  35. ED and CED.  You call them from the CMD:
  36. prompt with 'go xxxx' where xxxx is your
  37. chosen name for the buffers other than MAIN
  38. and PASTE which the system sets-up.  Use
  39. 'list' from the 'cmd:' prompt to see the 
  40. available buffers.
  41.  
  42. 3.  You can cut & paste from any buffer!
  43. By using [run/stop] + cursor movement to
  44. tag the text you want to move then F5 to 
  45. cut it to the 'PAST     buffer.  From here 
  46. you can 'go' to any buffer and then F6 
  47. will paste the buffer at the cursor location.
  48. You CAN NOT edit or 'go' to the PASTE 
  49. buffer.
  50.  
  51. 4.  Example of above...editing in MAIN
  52. area and you can't remember how to use 
  53. a command or function.  'Go' to 'help',
  54. 'get' a file off the disk that uses the
  55. function you need, cut the specific text,
  56. 'go' back to 'main' and paste in the text
  57. you taged.
  58.  
  59. 5.  'setu' without parameters will list
  60. the defined storage devices including the
  61. available RAMDISKS    
  62. 6.  You can modify the SHELL program to
  63. define the function keys to suit your
  64. needs and resave it to disk w/o problems.
  65.  
  66. 7.  The manual mentions a "built in 'run'
  67. command".  In fact, this does not exist!
  68. Part of the document problem is that the
  69. 128 docs are poorly rewritten 64 docs,
  70. with even the index pages wrong!  To rerun
  71. a program, just type the name again, if it
  72. is in memory, it runs without reloading. 
  73.  
  74. 8. I have tried to get the compiler to work
  75. with the '-p' option to access my 1581 as
  76. device 10,    ut it continues to go to device
  77. 8 for the main compiler program.  If anyone
  78. can figure this out, I'd appreciate the
  79. secret.
  80.  
  81. 9.  If you are using this C compiler, and
  82. have figured out some undocumented goody
  83. please make it known to the rest of us!
  84. I have the version prior to PROLINE's
  85. sell-out to Spinnaker and the documentation
  86. is worse than "skimpy".  They offered a BBS
  87. in Canada that was supposed to have updates,
  88. advice, and help that I could never reach. 
  89. I would love to know how the documentation
  90. is w    h Spinaker's version.  Is it worth
  91. buying a new version to get better use from
  92. the software???
  93.  
  94. 10.  These may seem trivial to an old C
  95. programmer, but for a NOVICE like me, were
  96. major roadblocks to getting started!
  97.  
  98. M. Tucker Brawner [73455,1440]
  99.